//
//  NSString+SJPString.m
//  SWS_Project00
//
//  Created by 马继鵬 on 17/3/10.
//  Copyright © 2017年 SWS. All rights reserved.
//

#import "NSString+SJPString.h"

@implementation NSString (SJPString)
+ (NSString *)SJP_transform:(NSString *)chinese
{
    NSMutableString *pinyin = [chinese mutableCopy];
    CFStringTransform((__bridge CFMutableStringRef)pinyin, NULL, kCFStringTransformMandarinLatin, NO);
    CFStringTransform((__bridge CFMutableStringRef)pinyin, NULL, kCFStringTransformStripCombiningMarks, NO);
//    NSLog(@"%@", pinyin);
    return [pinyin uppercaseString];
}

@end
